<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浏览器数据库测试</title>
</head>
<body>
<script type="text/javascript">
    window.onload=function(){
        window.localStorage.setItem('fuck111',"草泥马");
        alert(window.localStorage.getItem('fuck111'));
        //删除一条
        window.localStorage.removeItem('fuck111');
        //删除所有
        window.localStorage.clear();
    };

</script>
</body>
</html>